cmd_eeprom: fix i2c_{read|write} usage if env is in I2C EEPROM
authorAlexey Brodkin <[email protected]>
Thu, 7 Nov 2013 13:51:43 +0000 (17:51 +0400)
committerHeiko Schocher <[email protected]>
Wed, 13 Nov 2013 05:21:21 +0000 (06:21 +0100)
commita2e0a45d2e1e258cbe9bd3dbbe7bc7cacbf7a84e
tree1e0d446d7eca064f48801329351027054135b417
parent85bb251b393470c6d2a91b8f0f92b9f3fda856ca
cmd_eeprom: fix i2c_{read|write} usage if env is in I2C EEPROM

Data "offset" is not used directly in case of I2C EEPROM. Istead it is
split into "block number" and "offset within mentioned block". Which are
"addr[0]" and "addr[1]" respectively.

Signed-off-by: Alexey Brodkin <[email protected]>
Cc: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
cc: Peter Tyser <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Mischa Jonker <[email protected]>
common/cmd_eeprom.c